import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      redirect: 'formDesign'
    },
    {
      path: '/formDesign',
      name: 'formDesign',
      component: () => import('../views/formDesign/index.vue')
    },
    {
      path: '/demo',
      name: 'demo',
      component: () => import('../views/demo/index.vue')
    },
    {
      path: '/code',
      name: 'code',
      component: () => import('../views/code')
    }
  ]
});
